package com.tanjun.publicservice.web.orm.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.tanjun.common.enums.EnableStatusEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 系统配置表
 * @Table sys_config
 */
@Table(value ="sys_config")
@Data
public class SysConfig {
    /**
     * 
     */
    @Id(value = "id", keyType = KeyType.Auto)
    private Long id;

    /**
     * 配置名称
     */
    @Column(value = "config_name")
    private String configName;

    /**
     * 配置key
     */
    @Column(value = "config_key")
    private String configKey;

    /**
     * 配置值
     */
    @Column(value = "config_value")
    private String configValue;

    /**
     * 备注
     */
    @Column(value = "remark")
    private String remark;

    /**
     * 是否可用
     */
    private EnableStatusEnum status;

    /**
     * 创建时间
     */
    @Column(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    @Column(value = "creator")
    private String creator;

    /**
     * 更新时间
     */
    @Column(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 更新人ID
     */
    @Column(value = "updater")
    private String updater;

    /**
     * 逻辑删除标识(0-未删除 1-已删除)
     */
    @Column(value = "deleted")
    private Boolean deleted;

}